//
//  PB1TableViewCell.m
//  UI_元旦豆瓣小集合
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "PB1TableViewCell.h"

@implementation PB1TableViewCell
- (void)dealloc
{
    [_title release];
    [_begin_time release];
    [_address release];
    [_category_name release];
    [_participant_count release];
    [_wisher_count release];
    [_BView release];
    [_photoView release];
    [_SView release];
    [_OnView release];
    [_InView release];
    [_DView release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }return self;
}

- (void)creatCell {
    self.BView = [[UIImageView alloc] init];
    [self.contentView addSubview:_BView];
    [_BView release];
    
    self.SView = [[UIImageView alloc] init];
    [_BView addSubview:_SView];
    [_SView release];
    
    self.photoView = [[UIImageView alloc] init];
    [_SView addSubview:_photoView];
    [_photoView release];
    
    self.OnView = [[UIImageView alloc] init];
    [_SView addSubview:_OnView];
    [_OnView release];
    
    self.InView = [[UIImageView alloc] init];
    [_SView addSubview:_InView];
    [_InView release];
    
    self.DView = [[UIImageView alloc] init];
    [_SView addSubview:_DView];
    [_DView release];
    
    self.title = [[UILabel alloc] init];
    [_BView addSubview:_title];
    [_title release];
    
    self.begin_time = [[UILabel alloc] init];
    [_SView addSubview:_begin_time];
    [_begin_time release];
    
    self.address = [[UILabel alloc] init];
    [_SView addSubview:_address];
    [_address release];
    
    self.category_name = [[UILabel alloc] init];
    [_SView addSubview:_category_name];
    [_category_name release];
    
    self.participant_count = [[UILabel alloc] init];
    [_SView addSubview:_participant_count];
    [_participant_count release];
    
    self.wisher_count = [[UILabel alloc] init];
    [_SView addSubview:_wisher_count];
    [_wisher_count release];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _BView.frame = CGRectMake(15, 10, 345, 200);
    
    _SView.frame = CGRectMake(2, 40, 340, 150);
    
    _photoView.frame = CGRectMake(10, 5, 20, 20);
    
    _OnView.frame = CGRectMake(10, 35, 20, 20);
    
    _InView.frame = CGRectMake(10, 65, 20, 20);

    _DView.frame = CGRectMake(222, 5, 110, 140);
    
    _title.frame = CGRectMake(10, 5, 200, 30);
    
    _begin_time.frame = CGRectMake(35, 5, 155, 20);
    
    _address.frame = CGRectMake(35, 35, 170, 20);
   
    _category_name.frame = CGRectMake(35, 65, 105, 20);
    
    _participant_count.frame = CGRectMake(10, 120, 100, 20);
    
    _wisher_count.frame = CGRectMake(120, 120, 100, 20);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
